{extend name="AdminController/index" /}
{block name="main"}
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<div class="content-page">
    <div class="content">
        <h1>{$title}</h1>
<form action="{:url('update')}" method="post" >
    <div class="form-group">
      <label for="disabledTextInput">ID(不可更改)</label>
      <input type="text" id="disabledTextInput" class="form-control" placeholder="UserName" name="aid" disabled value="{$data.id}">
      <input type="hidden" name="id" value="{$data.id}">
    </div>

    <div class="form-group">
      <label for="disabledTextInput">编辑Name</label>
      <input type="text" id="disabledTextInput" class="form-control" placeholder="Name" name="Name" value="{$data.name}">
    </div>
    <div class="form-group">
      <label for="disabledTextInput">编辑Remark</label>
      <input type="text" id="disabledTextInput" class="form-control" placeholder="Remark" name="Remark" value="{$data.remark}">
    </div>

    <div class="form-group">
          <!-- Select Basic -->
          <label class="control-label">编辑Status</label>
          <div class="controls">
            <select class="input-xlarge" name="go">
                {if condition="($data.status == 0)"} 
                <option selected value="0">禁用</option>
                <option value="1">启用</option>
                {elseif condition="$data.status eq 1"/}
                <option selected value="1">启用</option>
                <option value="0">禁用</option>
                {/if}
            </select>
          </div>
    </div>
    
    <button type="submit" class="btn btn-success">提交</button>
</form>
    </div>
</div>


{/block}

